package com.xz.knowledgeDuplication.pattern.decorator;

/**
 * 抽象装饰者
 *
 * @author 召
 * @date 2022-03-12 22:41:39
 */
public abstract class Garnish extends FastFood {

    private FastFood fastFood;

    public Garnish(FastFood fastFood ,float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

}
